package com.sikaryofficial.information.domain.dto.datasync;

import com.sikaryofficial.information.domain.dto.resp.ArticleRecommendDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 文章推荐对象 article_recommend_t
 *
 * @author qinjinyuan
 * @date 2024-03-13
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "文章推荐同步消息入参", description = "文章推荐同步消息入参")
public class ArticleRecommendMQReq extends SyncMQReq {
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", example = "1")
    @NotNull(message="userId could not be empty")
    private Long userId;
    /**
     * 同步数据内容
     */
    @ApiModelProperty(value = "同步数据内容")
    @NotEmpty(message = "request data could not be empty")
    private List<ArticleRecommendDTO> data;

}
